<div class="layui-form" lay-filter="layuiadmin-form-course" style="padding: 20px 30px 0 0;">
  <div class="layui-form-item">
    <label class="layui-form-label">课程编号</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="courseNum" value="{{ d.params.courseNum || '' }}" lay-verify="required" placeholder="请输入课程编号" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">课程名称</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="courseName" value="{{ d.params.courseName || '' }}" lay-verify="required" placeholder="请输入课程名称" autocomplete="off" class="layui-input">
        <input type="hidden" name="courseId" value="{{ d.params.courseId || '' }}" />
      </script>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">学分</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="number" step="0.5" name="courseScore" value="{{ d.params.courseScore || '' }}" lay-verify="required|number" placeholder="请输入学分" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">总学时</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="number" name="courseTimes" value="{{ d.params.courseTimes || '' }}" lay-verify="required|number" placeholder="请输入总学时" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">讲授学时</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="number" name="courseLtimes" value="{{ d.params.courseLtimes || '' }}" lay-verify="number" placeholder="请输入讲授学时" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">实践学时</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="number" name="courseStimes" value="{{ d.params.courseStimes || '' }}" lay-verify="number" placeholder="请输入实践学时" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>

  <div class="layui-form-item" lay-filter="courseFlag">
    <label class="layui-form-label">状态</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="radio" name="courseFlag" value="0" title="启用" {{ d.params.courseFlag == 0 ? 'checked' : '' }}>
        <input type="radio" name="courseFlag" value="1" title="禁用" {{ d.params.courseFlag == 1 ? 'checked' : '' }}>
      </script>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label"></label>
    <div class="layui-input-inline">
      <input type="button" lay-submit lay-filter="LAY-course-modify" value="确认" class="layui-btn">
    </div>
  </div>
</div>

<script>
  layui.use(['admin', 'form'], function(){
    var $ = layui.$
            ,form = layui.form;

    form.render();
  });
</script>